package com.example.finalproject;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class difficulty extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_difficulty);
    }
    public void btn(View v){
        if(v.getId()==R.id.easy){
            Intent easy =new Intent(this,start.class);
            startActivityForResult(easy,1); }
        else if(v.getId()==R.id.normal){
            Intent normal =new Intent(this,start2.class);
            startActivityForResult(normal,2); }
        else if(v.getId()==R.id.difficult){
            Intent difficult =new Intent(this,start3.class);
            startActivityForResult(difficult,3); }
        else {
            Intent back =new Intent(this,MainActivity.class);
            startActivityForResult(back,4); }
    }
}